<?php
namespace BoojasrFramework\Tests;


use BoojasrFramework\ServicesContainer\Kernel;
use PHPUnit\Framework\TestCase;

abstract class KernelTestCase extends TestCase
{
    protected $container;

    public function bootKernel(){
        require_once dirname(__DIR__)."/../config/bootstrap.php";
        $kernel = new Kernel();
        $kernel->boot();
        $kernel->setEnv("test");
        $this->container = $kernel->getContainer();
        return $kernel;
    }
}